﻿using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using System;
using System.Collections.Generic;
using System.Text;

namespace RabbitMQConsumerTester
{
    class Program
    {
        static void Main(string[] pars)
        {
            var factory = new ConnectionFactory()
            {
                HostName = "localhost",
                UserName = "guest",
                Password = "guest"
            };

            //OldMessageListen.Listen(factory);
            DelayedMessageListen.Listen(factory);

            Console.WriteLine(" Press [enter] to exit.");
            Console.ReadLine();
        }
    }
}
